package com.wrb.appointment.feign;

import com.wrb.appointment.response.ServerResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Wrb
 * @date 2019/12/20 16:21
 */
@FeignClient("summary-points")
public interface PointsServiceFeign {

	/**
	 * 更改用户积分
	 *
	 * @param customerId
	 * @param transPoints
	 * @param transTitle
	 * @param transType
	 * @return
	 */
	@RequestMapping(value = "/micro/points/change", method = RequestMethod.POST)
	ServerResponse pointsChange(
			 @RequestParam(required = true) long customerId,
			 @RequestParam(required = true) int transPoints,
			 @RequestParam(required = true) String transTitle,
			 @RequestParam(required = true) int transType
	);

}
